package com.example.web.sys_menu.service;

import com.example.web.sys_menu.entity.Menu;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LS
 * @since 2024-02-20
 */
public interface IMenuService extends IService<Menu> {

    List<Menu> getParent();
    //根据用户id查询菜单
    List<Menu> getMenuByUserId(Long userId);
    //根据角色id查询菜单
    List<Menu> getMenuByRoleId(Long roleId);

}
